//
//  SWNewFeatureCollectionViewCell.swift
//  SinaWeibo
//
//  Created by wszyxc on 16/7/23.
//  Copyright © 2016年 wszyxc. All rights reserved.
//

import UIKit

class SWNewFeatureCollectionViewCell: UICollectionViewCell {
    
    
    var imgIndex: Int = 0 {
        
        didSet{
            
            newImageView.image = UIImage(named: "new_feature_\(imgIndex + 1)")
            
        
            
        }
 
    }

    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    private func setupUI(){
    
        contentView.addSubview(newImageView)
        
        newImageView.snp_makeConstraints { (make) -> Void in
            
            make.edges.equalTo(UIEdgeInsetsZero)
        }
    
    }
    
    private lazy var newImageView:UIImageView = UIImageView()
    

    
}
